package com.example.lijuan.myapplication.module;

/**
 * Created by nilesh on 10/13/2015.
 */
public class TripSummary {
    /*
    * {"lastLocation":{
    * "latitude":"39.158551",
    * "longitude":"117.394581",
    * "locationTime":"2015-10-13 14:40:10",
    * "locationType":"GCJ02"}
    * ,"voltage":"13.5",
    * "thisDriveTime":"00:03",
    * "thisMileage":"10",
    * "thisFuelConsumption":"0",
    * "thisRapidAccelerationCount":"0",
    * "thisRapidDecelerationCount":"0",
    * "thisRapidTurnCount":"0",
    * "thisMaxSpeed":"113",
    * "cumulativeAverageFuelConsumption":"0",
    * "totalMileage":"81"}*/
    public Location lastLocation;

//    @Override
//    public String toString() {
//        return "TripSummary{" +
//                "location=" + location +
//                ", locationType=" + locationType +
//                ", voltage=" + voltage +
//                ", thisDriveTime=" + thisDriveTime +
//                ", thisMileage=" + thisMileage +
//                ", thisFuelConsumption=" + thisFuelConsumption +
//                ", thisRapidAccelerationCount=" + thisRapidAccelerationCount +
//                ", thisRapidDecelerationCount=" + thisRapidDecelerationCount +
//                ", thisRapidTurnCount=" + thisRapidTurnCount +
//                ", thisMaxSpeed=" + thisMaxSpeed +
//                ", cumulativeAverageFuelConsumption=" + cumulativeAverageFuelConsumption +
//                ", totalMileage=" + totalMileage +
//                '}';
//    }

    public LocationType locationType = new LocationType();
    public double voltage = 0;

    public Location getLastLocation() {
        return lastLocation;
    }

    public void setLastLocation(Location location) {
        this.lastLocation = location;
    }

    public LocationType getLocationType() {
        return locationType;
    }

    public void setLocationType(LocationType locationType) {
        this.locationType = locationType;
    }

    public double getVoltage() {
        return voltage;
    }

    public void setVoltage(double voltage) {
        this.voltage = voltage;
    }

    public double getThisDriveTime() {
        return thisDriveTime;
    }

    public void setThisDriveTime(double thisDriveTime) {
        this.thisDriveTime = thisDriveTime;
    }

    public double getThisMileage() {
        return thisMileage;
    }

    public void setThisMileage(double thisMileage) {
        this.thisMileage = thisMileage;
    }

    public double getThisFuelConsumption() {
        return thisFuelConsumption;
    }

    public void setThisFuelConsumption(double thisFuelConsumption) {
        this.thisFuelConsumption = thisFuelConsumption;
    }

    public double getThisRapidAccelerationCount() {
        return thisRapidAccelerationCount;
    }

    public void setThisRapidAccelerationCount(double thisRapidAccelerationCount) {
        this.thisRapidAccelerationCount = thisRapidAccelerationCount;
    }

    public double getThisRapidDecelerationCount() {
        return thisRapidDecelerationCount;
    }

    public void setThisRapidDecelerationCount(double thisRapidDecelerationCount) {
        this.thisRapidDecelerationCount = thisRapidDecelerationCount;
    }

    public double getThisRapidTurnCount() {
        return thisRapidTurnCount;
    }

    public void setThisRapidTurnCount(double thisRapidTurnCount) {
        this.thisRapidTurnCount = thisRapidTurnCount;
    }

    public double getThisMaxSpeed() {
        return thisMaxSpeed;
    }

    public void setThisMaxSpeed(double thisMaxSpeed) {
        this.thisMaxSpeed = thisMaxSpeed;
    }

    public double getCumulativeAverageFuelConsumption() {
        return cumulativeAverageFuelConsumption;
    }

    public void setCumulativeAverageFuelConsumption(double cumulativeAverageFuelConsumption) {
        this.cumulativeAverageFuelConsumption = cumulativeAverageFuelConsumption;
    }

    public double getTotalMileage() {
        return totalMileage;
    }

    public void setTotalMileage(double totalMileage) {
        this.totalMileage = totalMileage;
    }

    public double thisDriveTime = 0;
    public double thisMileage = 0;
    public double thisFuelConsumption = 0;
    public double thisRapidAccelerationCount = 0;
    public double thisRapidDecelerationCount = 0;
    public double thisRapidTurnCount = 0;
    public double thisMaxSpeed = 0;
    public double cumulativeAverageFuelConsumption = 0;
    public double totalMileage = 0;


}
